package com.halley.servicecontract.service;

import com.halley.servicecontract.entity.User;

import java.util.List;
import java.util.Optional;

public class UserContractFallBack implements UserContract {
    @Override
    public void add(User user) {

    }

    @Override
    public Optional<User> findByName(String name) {
        return Optional.empty();
    }

    @Override
    public List<User> findAll() {
        return null;
    }

    @Override
    public String findUserName(String username) {
        return "Fallback method invoked, name is " + username;
    }
}
